/*
 * defines.h
 *
 * Created: 9/1/2011 3:53:54 PM
 *  Author: Patrick
 */ 


#ifndef DEFINES_H_
#define DEFINES_H_

#define TRUE		1
#define FALSE		0

#define LED_CONFIG	(DDRD |= (1<<6))
#define LED_OFF		(PORTD &= ~(1<<6))
#define LED_ON		(PORTD |= (1<<6))
#define CPU_PRESCALE(n)	(CLKPR = 0x80, CLKPR = (n))

#define BSF(port, pin)	((port) |= (1<<(pin)))
#define BCF(port, pin)	((port) &= ~(1<<(pin)))


#endif /* DEFINES_H_ */